<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<script type="text/javascript" src="js/jquery-1.3.1.js"></script>
</head>
<body>
<script type="text/javascript">
	// var arr1 = [1,"sp",4];
	// $.each(arr1,function(i, n){
	// 	alert(i + " " + n);
	// });
	var arr2 =[{name:"小明",age:20},{name:"大明",age:20},{name:"老明",age:20}];
	$.each(arr2,function(i,n){
		alert(i + " " + n.name);
	});
</script>
</body>
</html>